#ifndef tube_head_h
#define tube_head_h

#include "StaticObject.h"

#define tubeHeadWIDTH 80
#define tubeHeadHEIGHT 26

class TubeHead : public StaticObject
{
public:
	TubeHead(int id, D3DXVECTOR2 position, int MovingWidth): StaticObject(id, position, MovingWidth)
	{
		_w = tubeHeadWIDTH;
		_h = tubeHeadHEIGHT;
		_type = TubeHeadType;
		_movingWidth = MovingWidth;
	}
	~TubeHead(){}
	void Update();

	void LoadResources(LPD3DXSPRITE SpriteHandler, Texture *texture)
	{
		_sprite = new Sprite(SpriteHandler, texture, tubeHeadWIDTH, tubeHeadHEIGHT, 1, 0);
	}
	void RenderFrame(LPDIRECT3DSURFACE9 BackBuffer, ViewPort *viewport)
	{
		_sprite -> Render(BackBuffer, (int)_position.x, (int)_position.y, 255, 1, 1, viewport);
	}
private:
	Sprite *_sprite;

};
#endif